package com.example.circle.front.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("t_dynamics")
public class dynamics implements Serializable {
    private Long id;
    private Long authorId;
    private String authorName;
    private String content;
    private String imgUrl;
    private String videoUrl;
    private String ip;
    private int sort;
    private int upCount;
    private int downCount;
    private int commentCount;
    private int checkState;
    private int isDisplay;
    private int isRecommend;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime gmtModified;
}
